/* Base */
:root {
  --bg: #0b1020;
  --panel: #121833;
  --panel-alt: #0e1430;
  --text: #e7ecff;
  --muted: #b8c0e3;
  --primary: #5b8cff;
  --primary-600: #4577ff;
  --accent: #4ee5b0;
  --danger: #ff5b8c;
  --ring: rgba(91, 140, 255, 0.45);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, #17204b 0%, transparent 60%),
              radial-gradient(900px 600px at 90% -20%, #0d1a3a 0%, transparent 65%),
              var(--bg);
  line-height: 1.6;
}

/* Home (light) theme overrides: royal blue and white */
body.home {
  --text: #0b1020;
  --muted: #5f6b8a;
  --primary: #1f4ab8; /* royal blue */
  --primary-600: #153a96;
  --accent: #1f4ab8; /* logo accent (Care) */
  --panel: #ffffff;
  --panel-alt: #f7f9fc;
  background: #ffffff;
  color: var(--text);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(11, 16, 32, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.home .site-header { background: white; border-color: rgba(0,0,0,0.06); }
.home .logo, .home .site-nav a, .home .btn-outline { color: #0b1020; }
.home .btn-outline { border-color: rgba(0,0,0,0.18); }
.home .btn-outline:hover { border-color: rgba(0,0,0,0.35); }
.home .btn-primary { color: white; }
.home .logo-text .accent { color: var(--accent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.logo-mark { font-size: 22px; }
.logo-text { letter-spacing: 0.3px; font-size: 20px; }
.home .logo-text { font-size: 24px; }
.logo-text .accent { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { color: var(--text); text-decoration: none; opacity: 0.9; }
.site-nav a:hover { opacity: 1; }
.nav-toggle { display: none; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-600); }
.btn-outline { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.18); }
.btn-outline:hover { border-color: rgba(255,255,255,0.35); }

/* Hero */
.hero { padding: 72px 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 46px); line-height: 1.15; }
.hero p { margin: 0 0 18px; color: var(--muted); }
.hero .actions { display: flex; gap: 12px; margin: 16px 0 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px 16px; padding: 0; margin: 14px 0 0; list-style: none; color: var(--muted); }
.hero-art { position: relative; height: 260px; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow); background: #0d1534; }


/* Sections */
.section { padding: 56px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.section-title { margin: 0 0 20px; font-size: clamp(22px, 2.6vw, 34px); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid rgba(255,255,255,0.06); box-shadow: var(--shadow); }
.home .card { border-color: rgba(0,0,0,0.08); box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.card h3 { margin: 2px 0 8px; font-size: 18px; }
.card p { margin: 0 0 12px; color: var(--muted); }
.link { color: var(--primary); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 16px; background: var(--panel); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; }
.step-num { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(91,140,255,0.15); color: var(--primary); font-weight: 700; }

/* Form */
.form { background: var(--panel); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.home .form { border-color: rgba(0,0,0,0.08); box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 12px; color: var(--text); background: var(--panel-alt); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; outline: none; }
.home .form input, .home .form select, .home .form textarea { border-color: #dfe3ee; }
.home .form input:focus, .home .form select:focus, .home .form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.form-note { margin: 0; color: var(--muted); font-size: 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: start; }
.contact-list { padding: 0; margin: 10px 0 0; list-style: none; }
.contact-list li { margin-bottom: 6px; }
.muted { color: var(--muted); }
.map { height: 220px; }
.map iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; }

/* Bilingual display */
.lang-en .t-ar { display: none !important; }
.lang-ar .t-en { display: none !important; }
.lang-ar { direction: rtl; }

/* Footer */
.site-footer { padding: 26px 0 40px; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-nav { display: flex; gap: 14px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner > a.logo { order: 1; }
  .header-inner > div { order: 2; margin-left: auto; margin-right: 15px; }
  .header-inner > button.nav-toggle { order: 3; }
  
  .site-nav { position: fixed; inset: 56px 0 auto 0; background: rgba(11,16,32,0.98); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 14px 16px; display: none; z-index: 100; }
  .home .site-nav { background: rgba(255,255,255,0.98); border-color: rgba(0,0,0,0.08); }
  .site-nav.open { display: grid; gap: 10px; }
  .nav-toggle { display: inline-flex; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}


/* Light page variant (e.g., login) */
body.light {
  --text: #0b1020;
  --muted: #5f6b8a;
  --primary: #1f4ab8; /* royal blue */
  --primary-600: #153a96;
  --accent: #1f4ab8; /* Care accent */
  --panel: #ffffff;
  --panel-alt: #f7f9fc;
  background: #ffffff;
  color: var(--text);
}
.light .site-header { background: white; border-color: rgba(0,0,0,0.06); }
.light .logo, .light .site-nav a, .light .btn-outline { color: #0b1020; }
.light .btn-outline { border-color: rgba(0,0,0,0.18); }
.light .btn-outline:hover { border-color: rgba(0,0,0,0.35); }
.light .btn-primary { color: white; }
.light .logo-text .accent { color: var(--accent); }

/* Sidebar action buttons: consistent sizing across pages */
.sidebar-logout {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-logout .btn {
  width: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
}
.sidebar-logout a.btn {
  text-align: center;
}

